﻿// 调味工厂
public abstract class AbsSeasoningFactoryBase 
{
    public abstract void SeasoningSnack(Snack snack);
}

// 加辣
public class PepperFactory : AbsSeasoningFactoryBase
{
    public override void SeasoningSnack(Snack snack)
    {
        snack.AddDescription("辣味");
    }
}

// 加糖
public class SugarFactory : AbsSeasoningFactoryBase
{
    public override void SeasoningSnack(Snack snack)
    {
        snack.AddDescription("甜味");
    }
}
